{foreach $metadata->values as $mtemp}
	{if (!isset($current) && !isset($mtemp['meta']['parent_page'])) ||
		(isset($current) && isset($mtemp['meta']['parent_page']) 
			&& $current == $mtemp['meta']['parent_page'] )}
		<li id="{$mtemp@key}" class="tree_item">
			<span>
				<div style="float: left;">
					<img class="up" src="public/img/contextmenu/up.gif"/>
					<img class="down" src="public/img/contextmenu/down.gif"/>
				</div>
				<input type="text" value="{$mtemp@key}"/>		
				<img style="position: absolute; top: 0; margin-top: 2px;" src="public/img/contextmenu/arrow_out.png"/>
			</span>			
			<ul>{include file="def.sub_menu.tpl" current=$mtemp@key}</ul> 
		</li>
	{/if}
{/foreach}
